﻿using System;
using System.Collections;
using System.Web.UI;
using System.Web.UI.WebControls;

using Model.Components;
using FrameWork;
using FrameWork.Components;
using FrameWork.WebControls;


namespace FrameWork.web.Web
{
    public partial class Info : System.Web.UI.Page
    {
        public Int32 IDX = (Int32)Common.sink("IDX", MethodType.Get, 10, 0, DataType.Int);
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BusinessFacade.Update_Table_Fileds("T_Web"," LookNum=LookNum+1",string.Format(" ID={0}",IDX));
                T_WebEntity ut =Model.BusinessFacadeModel.T_WebDisp(IDX);
                TID_Disp.Text = ut.TID.ToString();
               
                TTtle_Disp.Text = ut.TTtle.ToString();
                TContent_Disp.Text = ut.TContent.ToString();
                XXian_Disp.Text = ut.XXian.ToString();
                XXian_Disp0.Text = BusinessFacade.get_table_fileds("T_Web", "LookNum","ID",IDX.ToString());
                
            }
        }
    }
}